export const typeConfig = [
  { label: 'string', value: 'string', color: '#67C23A' },
  { label: 'number', value: 'number', color: '#E6A23C' },
  { label: 'boolean', value: 'boolean', color: '#F56C6C' },
  { label: 'array', value: 'array', color: 'var(--el-color-primary)' },
  { label: 'object', value: 'object', color: '#909399' },
  { label: 'integer', value: 'integer', color: '#E6A23C' },
  { label: 'null', value: 'null', color: '#909399' },
  { label: 'oneof', value: 'oneof', color: '#9B59B6' },
  { label: 'anyof', value: 'anyof', color: '#9B59B6' },
  { label: 'allof', value: 'allof', color: '#9B59B6' }
]

export const expandableTypes = ['object', 'array', 'oneof', 'anyof', 'allof']

export const getTypeStyle = (type) => {
  const typeInfo = typeConfig.find(t => t.value === type)
  return {
    color: typeInfo?.color || '#909399',
    borderColor: typeInfo?.color || '#DCDFE6'
  }
} 